<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/constant.php';
require_once 'application/constant/daoConfig.php';
require_once 'application/library/exception/gcExceptionDealer.php';

/**
 * site_services_siteInfoSetService
 * 共通
 * @author    Suda
 * @version   1.0
 */

class site_services_siteInfoSetService {
    
    private $objDaoFactory;

    /**
    * 构造函数
    */
    public function __construct(){
        $this->objDaoFactory=gcDaoFactory::getInstance();
    }

    /**
     * 取得站点信息
     * pbGetSiteInfo
     * @param   string  $strType
     * @return  array   $arrReturn
     */
    public function pbGetSiteInfo($strType){
        $objDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SITE_INFO_DAO);
        $arrReturn = $objDao->pbGetSiteInfo($strType);
        return $arrReturn;
    }
    
    public function pbSaveSiteInfo($strCompanyIntroduce, $strCorporateCulture, $strDevelopmentStrategy) {
        $objDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SITE_INFO_DAO);
        $objDao->pbUpdateSiteInfo("1", $strCompanyIntroduce);
        $objDao->pbUpdateSiteInfo("2", $strCorporateCulture);
        $objDao->pbUpdateSiteInfo("3", $strDevelopmentStrategy);
    }
}